package com.g.places.api.model;

import com.google.code.geocoder.model.GeocoderGeometry;

/**
 * Represents  Google Places  Search Results (object in result collection ) <a
 * href
 * ="https://developers.google.com/places/documentation/#PlaceSearchResponses">
 * Google Place Search Result </a>
 * 
 * 
 * 
 * @author ahmad
 * 
 */
public class Place {

	private String formattedAddress;

	private GeocoderGeometry geometry;

	private String icon;

	private String id;

	private String name;

	private Double rating;

	private OpeningHours openingHours;

	private String reference;

	private String[] types;

	public GeocoderGeometry getGeometry() {
		return geometry;
	}

	public void setGeometry(GeocoderGeometry geometry) {
		this.geometry = geometry;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getReference() {
		return reference;
	}

	public void setReference(String reference) {
		this.reference = reference;
	}

	public String[] getTypes() {
		return types;
	}

	public void setTypes(String[] types) {
		this.types = types;
	}

	public Double getRating() {
		return rating;
	}

	public void setRating(Double rating) {
		this.rating = rating;
	}

	public OpeningHours getOpeningHours() {
		return openingHours;
	}

	public void setOpeningHours(OpeningHours openingHours) {
		this.openingHours = openingHours;
	}

	public String getFormattedAddress() {
		return formattedAddress;
	}

	public void setFormattedAddress(String formattedAddress) {
		this.formattedAddress = formattedAddress;
	}


	/**
	 * Represent opening hours object <a href=
	 * "https://developers.google.com/places/documentation/#PlaceSearchResponses"
	 * > Google Place Search Result </a>
	 * 
	 * @author ahmad
	 * 
	 */
	public static class OpeningHours {

		private Boolean openNow;

		public Boolean getOpenNow() {
			return openNow;
		}

		public void setOpenNow(Boolean openNow) {
			this.openNow = openNow;
		}

	}

}
